package com.ruoyi.common.constant;

import java.util.Arrays;
import java.util.List;

/**
 * 知识库常量信息
 */
public class ClassesConstants {
    //资源库表前缀
    public final static String RESOURCE_TABLE_PREFIX = "hymax_";

    //elasticSearch 索引
    public final static String ELASTICSEARCH_INDEXES = "hymax";

    //elasticSearch 高亮前缀
    public final static String SEARCH_HIGHLIGHT_PREFIX = "<span style='color:red'>";

    //elasticSearch 高亮后缀
    public final static String SEARCH_HIGHLIGHT_SUFFIX = "</span>";


    //elasticSearch 查询基础字段
    public final static List<String> SEARCH_BASE_FIELD = Arrays.asList("id","create_time","update_time","type","db");

    //基础查询逻辑.
    public final static List<String> BASIC_SYMBOLS = Arrays.asList("=",">","<",">=","<=","!=");

    //资源发布每次发布条数
    public final static Integer RELEASE_NUMBER_EVERT_TIME = 1000;

    //批量插入每次多少条
    public final static Integer INSERT_NUMBER_EVERT_TIME = 1000;

    //分词标识1分词  0不分词
    public final static String IS_SEARCH_PARTICIPLE = "1";

    //solr分词查询逻辑 可以是AND 或者 OR
    public final static String SEARCH_LOGIC = "AND";
}
